From 8cfe71daaad7dce0a6131fdca41652f9e7ac057b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 6 Dec 2025 13:45:35 +0100 Subject: [PATCH] src: stop overriding allow_slaac_only values MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit script_sync_delay is no longer updated with allow_slaac_only, so this isn't needed. Signed-off-by: Álvaro Fernández Rojas --- src/config.c | 3 --- src/odhcp6c.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/config.c b/src/config.c index f7977b4..23928cb 100644 --- a/src/config.c +++ b/src/config.c @@ -168,9 +168,6 @@ bool config_set_request_prefix(unsigned int length, unsigned int id) { config_dhcp.ia_pd_mode = length > 128 ? IA_MODE_NONE : IA_MODE_TRY; if (length <= 128) { - if (config_dhcp.allow_slaac_only >= 0 && config_dhcp.allow_slaac_only < 10) - config_dhcp.allow_slaac_only = 10; - prefix.length = length; prefix.iaid = htonl(id); diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 349f4ee..6b01e12 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -230,9 +230,6 @@ int main(_o_unused int argc, char* const argv[]) if (config_dhcp->ia_pd_mode == IA_MODE_NONE) config_dhcp->ia_pd_mode = IA_MODE_TRY; - if (config_dhcp->allow_slaac_only >= 0 && config_dhcp->allow_slaac_only < 10) - config_dhcp->allow_slaac_only = 10; - struct odhcp6c_request_prefix prefix = { 0 }; optpos = strchr(optarg, '/'); -- 2.30.2